package cn.ibizlab.odoo.core.odoo_stock.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_stock.domain.Stock_quant_package;
import cn.ibizlab.odoo.core.odoo_stock.filter.Stock_quant_packageSearchContext;

/**
 * 实体[Stock_quant_package] 服务对象接口
 */

public interface IStock_quant_packageService{
     boolean update(Stock_quant_package stock_quant_package) ;
     boolean remove(Integer id) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean create(Stock_quant_package stock_quant_package) ;
     void updateBatch(List<Stock_quant_package> stock_quant_packages, int batchSize) ;
     Stock_quant_package get(Integer id) ;
     Stock_quant_package get(Stock_quant_package stock_quant_package) ;
     void createBatch(List<Stock_quant_package> stock_quant_packages, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Stock_quant_package> searchDefault(Stock_quant_packageSearchContext context) ;

    /**
     * 根据产品包装查询
     */
     Page<Stock_quant_package> selectByOdoo_packaging(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Stock_quant_package> selectByOdoo_company(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_quant_package> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_quant_package> selectByOdoo_write(Integer id) ;

    /**
     * 根据库存位置查询
     */
     Page<Stock_quant_package> selectByOdoo_location(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Stock_quant_package convert2Domain(cn.ibizlab.odoo.core.client.model.Istock_quant_package model ,Stock_quant_package domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Istock_quant_package convert2Model(Stock_quant_package domain , cn.ibizlab.odoo.core.client.model.Istock_quant_package model);

}
